using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;

namespace Blog.Repository;


/// <summary>
/// 数据字典
///</summary>
[SugarTable("ad_dictionary")]
public class AdDictionaryEntity : EntityFull
{

    /// <summary>
    /// 主键Id
    ///</summary>
    [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
    public long Id { get; set; }
    
    /// <summary>
    /// 字典类型Id
    ///</summary>
    [SugarColumn(ColumnName = "DictionaryTypeId")]
    public long DictionaryTypeId { get; set; }
    
    /// <summary>
    /// 字典名称
    ///</summary>
    [SugarColumn(ColumnName = "Name")]
    public string? Name { get; set; }
    
    /// <summary>
    /// 字典编码
    ///</summary>
    [SugarColumn(ColumnName = "Code")]
    public string? Code { get; set; }
    
    /// <summary>
    /// 字典值
    ///</summary>
    [SugarColumn(ColumnName = "Value")]
    public string? Value { get; set; }
    
    /// <summary>
    /// 描述
    ///</summary>
    [SugarColumn(ColumnName = "Description")]
    public string? Description { get; set; }
    
    /// <summary>
    /// 启用
    ///</summary>
    [SugarColumn(ColumnName = "Enabled")]
    public bool Enabled { get; set; }
    
    /// <summary>
    /// 排序
    ///</summary>
    [SugarColumn(ColumnName = "Sort")]
    public int Sort { get; set; }
    
    /// <summary>
    /// 租户Id
    ///</summary>
    [SugarColumn(ColumnName = "TenantId")]
    public long? TenantId { get; set; }
    
    /// <summary>
    /// 版本
    ///</summary>
    [SugarColumn(ColumnName = "Version")]
    public long Version { get; set; }
    }
